package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * 项目:demo-springboot-230701
 * 描述:
 * 时间:2023/9/26 10:32
 * 作者:admin
 * 版本:1.0
 **/
@Data
@TableName("user_info")
public class UserInfo extends MyPage {

    //主键定义
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer userId;

    //非主键定义
    @TableField(value = "user_name")
    private String userName;

    private String userPwd;

    private Integer userDetailId;

    private String userSalt;
    //一对一
    @TableField(exist = false)
    private UserDetail userDetail;
    //一对多
    @TableField(exist = false)
    private List<OrderInfo> list;



}
